package com.nsu.konus.control;

public class StringUtils {
	
	public static String getFileName(String fileName) {
		byte[] bytes = fileName.getBytes();
		int size = bytes.length;
		for(int i = bytes.length - 1; i >= 0; i--) {
			if (bytes[i] == '.')
			{
				size = i;
				break;
			}
		}
		return fileName.substring(0, size);
	}
}
